﻿namespace EFS.RC.Presences.Controls.Lync.Presences
{
	/// <summary>
	/// Interaction logic for List.xaml
	/// </summary>
	public partial class ListSwitch : System.Windows.Controls.UserControl
	{
		public ListSwitch()
		{
			InitializeComponent();
		}

		public void LoadPresences(
			System.String[] sipArray)
		{
			// get
			EFS.RC.Presences.Controls.Lync.Presences.List controlList = ConstrolList;
			controlList.LoadPresences(sipArray);

			// set
			contentControlList.Content = controlList;
		}

		/// Property ConstrolList: Get
		private EFS.RC.Presences.Controls.Lync.Presences.List ConstrolList
		{
			get
			{
				//return new list
				return new ListHorizontal();
			}
		}
	}

}